package com.lei.springbootpractice.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="ProductBunch")
public class ProductBunchPojo {
    @TableId(value="ProductBunchID",type= IdType.ASSIGN_ID)
    private String ProductBunchID;

    //todo 外键
    @TableField(value="cart_id")
    private String cartId;

    @TableField(value="order_id")
    private String orderId;

    @TableField(value="product_id")
    private String productId;

    @TableField(value="quantity")
    private int quantity;
    @TableField(value = "tolPrice")
    private double tolPrice;

    @TableField(value="status")
    private String status;

    @TableField(exist = false)
    private ProductsPojo product;
}
